//
//  ChatViewCellFrame.h
//  BaiYing_Thinker
//
//  Created by 鹏 朱 on 15/11/4.
//  Copyright (c) 2015年 XKJH. All rights reserved.
//

#import <Foundation/Foundation.h>
@class SessonContentMessage;

typedef enum : NSUInteger {
    
    TextDataModelType = 1,
    ImageDataModelType = 2,
    VideoDataModelType = 3,
    AudioDataModelType = 4,
    WebDataModelType = 5,
    TextAndImageDataModelType = 6,
    
} DataModelType; //明细控制器类型

@interface ChatViewCellFrame : NSObject

@property (nonatomic, strong) SessonContentMessage *message;
@property (nonatomic, assign) CGSize webViewSize;
@property (nonatomic, assign) DataModelType dataModelType;

@property (nonatomic, assign) CGRect textRect;
@property (nonatomic, assign) CGRect imageRect;
@property (nonatomic, assign) CGRect webRect;
@property (nonatomic, assign) CGRect videoRect;
@property (nonatomic, assign) CGRect audioRect;

- (CGFloat)cellHeight;
- (id)initWithDataModel:(SessonContentMessage *)dataModel dataModelType:(DataModelType)dataModelType webSize:(CGSize)webSize;

@end
